package paidaxing.blog.core.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 搜索记录表(SearchRecords)实体类
 *
 * @author heef
 * @since 2025-10-21 11:03:34
 */
public class SearchRecords implements Serializable {
    private static final long serialVersionUID = 580802067719732979L;
    /**
     * 记录ID
     */
    private Long id;
    /**
     * 搜索关键词
     */
    private String keyword;
    /**
     * 搜索次数
     */
    private Integer searchCount;
    /**
     * 搜索用户ID(匿名用户为NULL)
     */
    private Long userId;
    /**
     * 搜索时间
     */
    private Date createdAt;
    /**
     * 更新时间
     */
    private Date updatedAt;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getSearchCount() {
        return searchCount;
    }

    public void setSearchCount(Integer searchCount) {
        this.searchCount = searchCount;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

}